<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app"></div>
</body>
<script src="./render.js"></script>
<script>
  const app = document.getElementById('app')
  const vnode = h('div', {class: 'zl'}, [
    h('h2', null, '当前计100'),
    h('button', {onClick: function() {} } ,'+1')
  ])
  mount(vnode, app)
  // console.log(vnode)

  setTimeout(() => {
    const vnode1 = h('div', {class: 'zl'}, [
    h('h2', null, '发射点发生'),
    h('button', null, '+dddd')
  ])
  patch(vnode, vnode1)
  }, 2000)
</script>

<script>
</script>
</html>